package com.lzh.excel.exception;

/**
 * @author zhehen.lu
 * @date 2025/8/3 14:27
 */
public enum ErrorCode {
    EXCEL_NOT_EMPTY(60000, "excel不能为空"),
    EXCEL_COLUMN_NUMBER_NOT_MATCH(60001, "excel列数不匹配"),
    EXCEL_EMPTY_TEMPLATE_NOT_ALLOW(60002, "不允许传入空模板"),
    WRITE_DATA_TO_EXCEL_FAIL(60003, "写入数据到execl失败"),
    EXCEL_FILE_FORMAT(60004, "excel文件格式错误");

    private Integer errorCode;
    private String errorMsg;

    private ErrorCode(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public Integer getErrorCode() {
        return this.errorCode;
    }

    public String getErrorMsg() {
        return this.errorMsg;
    }
}
